﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Betop.Lib.Core.Cache
{
    public class CacheManager
    {

        public CacheLoader _loader;
        private CacheContainer _data;
        public CacheManager()
        {
            _loader = new CacheLoader(data =>
            {
                _data = data;
            });
        }

        public CacheContainer Data
        {
            get
            {
                return _data;
            }
        }

        public void Update()
        {
            _loader.Update();
        }

        private static CacheManager _instance = new CacheManager();

        public static CacheManager Instance
        {
            get
            {
                return _instance;
            }
        }
    }
}
